//Created by Andre
#include "Ingredient.h"
#include "Instructions.h"
using namespace std;
istream& operator>>(istream &stream, Ingredient &ingr)//Method to overide >> created by Andre
{
	int ingr_id;
	int rec_id;
	float amt;
	string unit;
	string name;
	stream>>ingr_id;
	stream>>rec_id;
	stream>>amt;
	stream>>unit;
	stream>>name;
	ingr = Ingredient(ingr_id,rec_id,amt,unit,name);
	return stream;
}
ostream& operator<<(ostream &stream, Ingredient &ingr)//Method to overide << created by Andre
{
	stream<<ingr.get_ingredient_id()<<"\t"<<ingr.get_recipe_id()<<"\t"<<ingr.get_amount()<<"\t"<<ingr.get_units()<<"\t"<<ingr.get_name()<<endl;
	return stream;
}
